package leetcode.code0367;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution367 implements IDebug {
	public abstract boolean isPerfectSquare(int num);

	@Override
	public void debug1() {
		int num = 16;
		boolean e = true;
		boolean r = this.isPerfectSquare(num);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		int num = 14;
		boolean e = false;
		boolean r = this.isPerfectSquare(num);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug3() {
		int num = 65536;
		boolean e = true;
		boolean r = this.isPerfectSquare(num);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug4() {
		int num = 2147395600;
		System.out.println(Math.sqrt(num));
		boolean e = true;
		boolean r = this.isPerfectSquare(num);
		HelpDebug.compare(e, r);
	}

}
